/**
 * @Author      : maolin
 * @Date        : 2021/5/20
 * @Version     : 1.0
 * @Description :
 **/

import {taxRateReg} from "../index";

export function taxRateValidator({ cellValue, rule, rules, row, rowIndex, column, columnIndex }) {
  if (cellValue) {
    if (!taxRateReg.reg.test(cellValue)) {
      return new Error(taxRateReg.msg);
    }
  }
}
